package com.ymatou.iapi.sellertrading.service;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class CancelOrdersCall extends YmatouAutoTestCall{

	private static String opurl = "/api/orderoperate/cancelorders";
	public CancelOrdersCall(){
		super("sellertrading_iapi", opurl, "POST", "JSON");
	}
	
	public CancelOrdersCall(int sellerid, int UserId) {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl+"?sellerid="+sellerid+"&UserId="+UserId,"POST","JSON");
		// TODO Auto-generated constructor stub
	}
	@Override
	public void addDefHeader(){
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new CancelOrdersCall(480948, 480948).callAndGetReturnData();
	}

}
